<?php

use think\Route;

/*
|--------------------------------------------------------------------------
| 简单路由配置
|--------------------------------------------------------------------------
|
| 这里定义的路由是应用的全局路由，所有模块都可以使用
|
*/

// 移除重复的ysapi组，合并到下面的主要ysapi组中

// AI控制器路由
Route::group('', function () {
    Route::rule('ai/generateImage', 'app\admin\controller\ai\Ai@generateImage', 'POST');
    Route::rule('ai/generateText', 'app\admin\controller\ai\Ai@generateText', 'POST');
    Route::rule('ai/test', 'app\admin\controller\ai\Ai@test', 'GET');
    Route::rule('ai/testConfig', 'app\admin\controller\ai\Ai@testConfig', 'GET');
    // 兼容旧路由
    Route::rule('ai/ai/generateImage', 'app\admin\controller\ai\Ai@generateImage', 'POST');
    Route::rule('ai/ai/generateText', 'app\admin\controller\ai\Ai@generateText', 'POST');
    Route::rule('ai/ai/test', 'app\admin\controller\ai\Ai@test', 'GET');
    Route::rule('ai/ai/testConfig', 'app\admin\controller\ai\Ai@testConfig', 'GET');
});


Route::group('ysapi', function () {
    Route::group('v1', function () {
        //首页
        Route::rule('index/info', 'app\api\controller\v1\Index@info', 'GET');
        Route::rule('index/getList', 'app\api\controller\v1\Index@getList', 'GET');
        Route::rule('index/getCityList', 'app\api\controller\v1\Index@getCityList', 'GET');
        Route::rule('index/getCityByLocation', 'app\api\controller\v1\Index@getCityByLocation', 'POST');
        Route::rule('city/getAddressByLocation', 'app\api\controller\v1\city@getAddressByLocation', 'POST');

        // 每日一题API路由
        Route::rule('dailyQuestion/getRandomQuestion', 'app\api\controller\v1\DailyQuestion@getRandomQuestion', 'GET');
        Route::rule('dailyQuestion/getQuestionList', 'app\api\controller\v1\DailyQuestion@getQuestionList', 'GET');
        Route::rule('dailyQuestion/getQuestionById/:id', 'app\api\controller\v1\DailyQuestion@getQuestionById', 'GET');
        Route::rule('dailyQuestion/getQuestionsByCategory/:category', 'app\api\controller\v1\DailyQuestion@getQuestionsByCategory', 'GET');

        Route::rule('applyform/getSubjectLvInfo', 'app\api\controller\v1\Enrollment@getSubjectNames', 'GET');
        Route::rule('enrollment/getNearbyLocations', 'app\api\controller\v1\Enrollment@getNearbyLocations', 'GET');
        Route::rule('enrollment/getCourseDetails', 'app\api\controller\v1\Enrollment@getCourseDetails', 'GET');
        Route::rule('enrollment/getNearbyCourseDetails', 'app\api\controller\v1\Enrollment@getNearbyCourseDetails', 'GET');
        Route::rule('enrollment/getCourseDetailsBySubject', 'app\api\controller\v1\Enrollment@getCourseDetailsBySubject', 'GET');
        Route::rule('enrollment/getCourseDetailsBySubject2', 'app\api\controller\v1\Enrollment@getCourseDetailsBySubject2', 'GET');
        Route::rule('enrollment/getOcationAllClass', 'app\api\controller\v1\Enrollment@getOcationAllClass', 'GET');
        Route::rule('enrollment/getTeachingPointList', 'app\api\controller\v1\Enrollment@teaching_point_list', 'GET');
        Route::rule('enrollment/collectOcation', 'app\api\controller\v1\Enrollment@collectOcation', 'GET');
        Route::rule('enrollment/applyEnrollment', 'app\api\controller\v1\Enrollment@applyEnrollment', 'POST');
        Route::rule('enrollment/downloadCert', 'app\api\controller\v1\Enrollment@downloadCert', 'GET');
        Route::rule('enrollment/getSubjectlv', 'app\api\controller\v1\Enrollment@getSubjectlv', 'GET');
        Route::rule('enrollment/wxPay', 'app\api\controller\v1\Enrollment@createPrePayOrder', 'POST');
        Route::rule('enrollment/notify', 'app\api\controller\v1\Enrollment@native_notify', 'POST');
        Route::rule('enrollment/isApplyed', 'app\api\controller\v1\Enrollment@isApplyed', 'GET');
        Route::rule('user/login', 'app\api\controller\User@login', 'POST');
        Route::rule('wechat/login', 'app\api\controller\User@wxlogin', 'GET|POST');
        Route::rule('wechat/qrcode', 'app\api\controller\User@qrcode', 'GET');
        Route::rule('wechat/bind', 'app\api\controller\v1\Wxlogin@bind', 'GET|POST');
        Route::rule('wechat/unbind', 'app\api\controller\v1\Wxlogin@unbind', 'GET|POST');
        Route::rule('wechat/index', 'app\api\controller\v1\Wxlogin@index', 'GET');
        Route::rule('wechat/check', 'app\api\controller\v1\Wxlogin@check', 'GET');
        Route::rule('user/mobilelogin', 'app\api\controller\User@mobilelogin', 'POST');
        Route::rule('user/register', 'app\api\controller\User@register', 'POST');
        Route::rule('user/logout', 'app\api\controller\User@logout', 'POST');
        Route::rule('user/changeemail', 'app\api\controller\User@changeemail', 'POST');
        Route::rule('user/changemobile', 'app\api\controller\User@changemobile', 'POST');
        Route::rule('user/save', 'app\api\controller\User@save', 'POST');
        Route::rule('user/studentRegister', 'app\api\controller\User@studentRegister', 'POST');
        Route::rule('user/adminRegister', 'app\api\controller\User@adminRegister', 'POST');
        Route::rule('user/teacherRegister', 'app\api\controller\User@teacherRegister', 'POST');

        // 添加之前移除的路由
        Route::rule('weixin/dologin', 'app\api\controller\v1\Wxlogin@dologin', 'GET|POST');
        Route::rule('user/updateUserInfo', 'app\api\controller\User@updateUserInfo', 'POST');
        Route::rule('user/getWxLoginCode', 'app\api\controller\User@getWxLoginCode', 'GET');
        Route::rule('user/changepwd', 'app\api\controller\User@renewpassword', 'POST');
        Route::rule('user/cityschoollist', 'app\api\controller\v1\User@cityschoollist', 'GET');
        Route::rule('user/changeTeacher', 'app\api\controller\User@changeTeacher', 'GET');
        Route::rule('user/changeManager', 'app\api\controller\User@changeManager', 'GET');
        Route::rule('user/changeStudent', 'app\api\controller\User@changeStudent', 'GET');
        Route::rule('user/getPhoneAccount', 'app\api\controller\User@getPhoneAccount', 'GET');
        Route::rule('user/getUserPoints', 'app\api\controller\User@getUserPoints', 'GET');
        Route::rule('ems/send', 'app\api\controller\Ems@send', 'POST');
        Route::rule('ems/sendSms', 'app\api\controller\Ems@sendSms', 'POST');
        Route::rule('classTeamList/classTeamList', 'app\api\controller\v1\ClassTeamList@getList', 'GET');
        Route::rule('classProfile/getClassInfo', 'app\api\controller\v1\ClassProfile@getClassInfo', 'POST');
        Route::rule('classProfile/applyJoinClass', 'app\api\controller\v1\ClassProfile@applyJoinClass', 'POST');
        Route::rule('ClassTeam/getClassTeamInfo', 'app\api\controller\v1\ClassTeam@getClassTeamInfo', 'GET');
        Route::rule('ClassTeam/applyJoinClass', 'app\api\controller\v1\ClassTeam@applyJoinClass', 'GET');
        Route::rule('Classes/applyJoinClass', 'app\api\controller\v1\Classes@applyJoinClass', 'GET');
        Route::rule('CommunityStatistics/getCommunityStatistics', 'app\api\controller\v1\CommunityStatistics@getCommunityStatistics', 'GET');
        Route::rule('EventDetails/EventDetails', 'app\api\controller\v1\Event@getList', 'GET');  //重要
        Route::rule('EventDetails/list', 'app\api\controller\v1\Event@list', 'GET');  //重要
        Route::rule('cityarea/getAreas', 'app\api\controller\v1\Cityarea@getAreas', 'GET');
        Route::rule('EventDetails/ocationlist', 'app\api\controller\v1\Event@ocationlist', 'GET');  //重要
        Route::rule('EventDetails/ocationDetail', 'app\api\controller\v1\Event@ocationDetail', 'GET');  //重要
        Route::rule('createClass/create', 'app\api\controller\v1\Classes@create', 'POST');
        Route::rule('creditDetail/creditDetail', 'app\api\controller\v1\CreditDetail@getCreditList', 'GET');
        Route::rule('creditDetail/creditDetail/<creditId>', 'app\api\controller\v1\CreditDetail@getCreditInfo', 'GET');
        Route::get('getCategories', 'app\admin\controller\Category@getCategoryList');
        Route::rule('my/userInfo', 'app\api\controller\v1\My@getInfo', 'GET');
        Route::rule('my/myclasses', 'app\api\controller\v1\My@myclasses', 'GET');
        Route::rule('my/allclasses', 'app\api\controller\v1\My@allclasses', 'GET');
        Route::rule('my/applyPayList', 'app\api\controller\v1\My@applyPayList', 'GET');
        Route::rule('my/applyRefund', 'app\api\controller\v1\My@applyRefund', 'GET');
        Route::rule('my/getRefundRecords', 'app\api\controller\v1\My@getRefundRecords', 'GET');
        Route::rule('my/queryOrderRefunds', 'app\api\controller\v1\My@queryOrderRefunds', 'GET');
        Route::rule('my/queryWechatOrderInfo', 'app\api\controller\v1\My@queryWechatOrderInfo', 'GET');
        Route::rule('my/refundnotify', 'app\api\controller\v1\My@refundnotify', 'POST');
        Route::rule('event_management_personal_details/info', 'app\api\controller\v1\EventManagementPersonalDetails@getInfo', 'GET');
        Route::rule('school/info', 'app\api\controller\v1\Classes@getSchoolInfo', 'GET');  //重要
        Route::rule('classes/list', 'app\api\controller\v1\Classes@getClassList', 'GET');
        Route::rule('news/list', 'app\api\controller\v1\News@getNewsList', 'GET');
        Route::rule('news/detail', 'app\api\controller\v1\News@getNewsDetail', 'GET');
        Route::rule('checkin/checkInOut', 'app\api\controller\v1\Checkin@checkInOut', 'GET|POST');
        Route::rule('Share/upload', 'app\api\controller\v1\Share@upload', 'GET|POST');
        Route::rule('news/content', 'app\api\controller\v1\News@getArticleContent', 'GET');
        Route::rule('enrollment/detail', 'app\api\controller\v1\Enrollment@getEnrollmentDetail', 'GET');
        Route::rule('enrollment/list', 'app\api\controller\v1\Enrollment@getEnrollmentList', 'GET');
        Route::rule('enrollment/shool_activity_pre', 'app\api\controller\v1\Enrollment@getInfo', 'GET');
        Route::rule('activity/detail', 'app\api\controller\v1\Activity@getActivityDetail', 'GET');
        Route::rule('teacher/save', 'app\api\controller\v1\Teacher@save', 'POST');
        Route::rule('manager/save', 'app\api\controller\v1\Manager@save', 'POST');
        Route::rule('classes/getClassInfo', 'app\api\controller\v1\Classes@getClassInfo', 'GET');
        Route::post('user/loginByWechat', 'app\api\controller\v1\User@loginByWechat');
        Route::rule('teacher/add_application_unit', 'app\api\controller\v1\Teacher@addApplicationUnit', 'POST');
        Route::rule('teacher/getApplicationList', 'app\api\controller\v1\Teacher@getApplicationList', 'GET');
        Route::rule('teacher/getApplicationInfo', 'app\api\controller\v1\Teacher@getApplicationInfo', 'GET');
        Route::rule('teacher/approve', 'app\api\controller\v1\Teacher@approveApplication', 'POST');
        Route::rule('teacher/reject', 'app\api\controller\v1\Teacher@rejectApplication', 'POST');
        Route::rule('teacher/withdraw', 'app\api\controller\v1\Teacher@withdrawApplication', 'POST');
        Route::rule('teacher/withdraw_application', 'app\api\controller\v1\Teacher@withdrawApplication', 'POST');

        Route::rule('manager/add_application_unit', 'app\api\controller\v1\Manager@addApplicationUnit', 'POST');
        Route::rule('manager/getApplicationList', 'app\api\controller\v1\Manager@getApplicationList', 'GET');
        Route::rule('manager/getApplicationInfo', 'app\api\controller\v1\Manager@getApplicationInfo', 'GET');
        Route::rule('manager/approve', 'app\api\controller\v1\Manager@approveApplication', 'POST');
        Route::rule('manager/reject', 'app\api\controller\v1\Manager@rejectApplication', 'POST');
        Route::rule('manager/withdraw', 'app\api\controller\v1\Manager@withdrawApplication', 'POST');

        Route::rule('school/list', 'app\api\controller\v1\School@list', 'GET');
        Route::rule('school/schoolInfo', 'app\api\controller\v1\School@schoolInfo', 'GET');
        Route::rule('school/enrollmentInfo', 'app\api\controller\v1\School@enrollment', 'GET');
        Route::rule('school/enrollmentDetail', 'app\api\controller\v1\School@enrollmentDetail', 'GET');
        Route::rule('school/activeDetail', 'app\api\controller\v1\School@activeDetail', 'GET');
        Route::rule('school/collectSchool', 'app\api\controller\v1\School@collectSchool', 'GET');
        Route::rule('school/getprameter', 'app\api\controller\v1\School@getprameter', 'GET|POST');
        Route::rule('event/getList', 'app\api\controller\v1\Event@getList', 'GET');
        Route::rule('event/list', 'app\api\controller\v1\Event@list', 'GET');
        Route::rule('event/getInfo', 'app\api\controller\v1\Event@getInfo', 'GET');
        Route::rule('event/getSchoolClasses', 'app\api\controller\v1\Event@getSchoolClasses', 'GET');
        Route::rule('event/getCommunityClasses', 'app\api\controller\v1\Event@getCommunityClasses', 'GET');
        Route::rule('event/getClassesStats', 'app\api\controller\v1\Event@getClassesStats', 'GET');

        Route::get('enrollment/getRegistration', 'app\api\controller\v1\Enrollment@getRegistration');
        Route::post('enrollment/setRegistration', 'app\api\controller\v1\Enrollment@setRegistration');
        Route::post('enrollment/setAgreement', 'app\api\controller\v1\Enrollment@setAgreement');
        Route::get('enrollment/getPaymentRecord', 'app\api\controller\v1\Enrollment@getPaymentRecord');
        Route::get('enrollment/cancelRegistration', 'app\api\controller\v1\Enrollment@cancelRegistration');
        Route::get('enrollment/getApplyForm', 'app\api\controller\v1\Enrollment@getApplyForm');
        Route::get('enrollment/getTableForm', 'app\api\controller\v1\Enrollment@getTableForm');
        Route::get('enrollment/setReadAgree', 'app\api\controller\v1\Enrollment@setReadAgree');

        Route::get('school/getColumnList', 'app\api\controller\v1\School@getColumnList');
        Route::get('school/getLicense', 'app\api\controller\v1\School@getLicense');
        Route::get('school/getLicenseImg', 'app\api\controller\v1\School@getLicenseImg');
        Route::get('school/getCourseTable', 'app\api\controller\v1\School@getCourseTable');
        Route::get('school/getCourseTableList', 'app\api\controller\v1\School@getCourseTableList');
        Route::get('school/getCloudClassroom', 'app\api\controller\v1\School@getCloudClassroom');
        Route::get('school/getVideo', 'app\api\controller\v1\School@getVideo');

        Route::get('my/setCollection', 'app\api\controller\v1\My@setCollection');
        Route::get('my/getCollection', 'app\api\controller\v1\My@getCollection');
        Route::get('my/getCollectionList', 'app\api\controller\v1\My@getCollectionList');
        Route::get('my/delCollection', 'app\api\controller\v1\My@delCollection');

        Route::get('news/statistics', 'app\api\controller\v1\News@statistics');

        Route::get('classTeamList/getLocationClass', 'app\api\controller\v1\ClassTeamList@getLocationClass');

        // AI助手相关路由
        Route::rule('AiHelper/generateText', 'app\api\controller\v1\AiHelper@generateText', 'POST');
        Route::rule('AiHelper/getOrGenerateOcationIntro', 'app\api\controller\v1\AiHelper@getOrGenerateOcationIntro', 'POST');

        // 教学点位置信息API
        Route::rule('Event/getOcationLocationInfo', 'app\api\controller\v1\Event@getOcationLocationInfo', 'GET');
        Route::rule('Event/getBatchOcationLocationInfo', 'app\api\controller\v1\Event@getBatchOcationLocationInfo', 'GET');
        Route::rule('Event/getAddressByCoordinates', 'app\api\controller\v1\Event@getAddressByCoordinates', 'GET');

        Route::rule('curriculum/getDashboard', 'app\api\controller\v1\Curriculum@getDashboard', 'GET');
        Route::rule('curriculumManagement/curriculumManagement', 'app\api\controller\v1\Curriculum@getDashboard', 'GET');
        Route::rule('curriculum/getClassDashboard', 'app\api\controller\v1\Curriculum@getClassDashboard', 'GET');
        Route::rule('leave/apply', 'app\api\controller\v1\Leave@apply', 'POST');
        Route::rule('leave/list', 'app\api\controller\v1\Leave@lists', 'GET');
        Route::rule('checkin/punch', 'app\api\controller\v1\Checkin@punch', 'POST');
        Route::rule('checkin/list', 'app\api\controller\v1\Checkin@lists', 'GET');
        Route::rule('cooperative/save', 'app\api\controller\v1\Cooperative@save', 'POST');
        Route::rule('ProjectCourse/stats', 'app\api\controller\v1\ProjectCourse@stats', 'GET');


        Route::rule('onlineclassroom/applytoclassroom', 'app\api\controller\v1\Onlineclassroom@applyToClassroom', 'POST');

        Route::rule('AiHelper/testBaiduMapApi', 'app\api\controller\v1\AiHelper@testBaiduMapApi', 'GET|POST');
        Route::rule('AiHelper/checkBaiduMapConfig', 'app\api\controller\v1\AiHelper@checkBaiduMapConfig', 'GET|POST');
        Route::rule('AiHelper/getOcationCourses', 'app\api\controller\v1\AiHelper@getOcationCourses', 'POST');
        Route::rule('AiHelper/simpleTest', 'app\api\controller\v1\AiHelper@simpleTest', 'GET');

        // 报名表相关路由
        Route::rule('registrationForm/getFormSettings', 'app\api\controller\v1\RegistrationForm@getFormSettings', 'POST');
        Route::rule('registrationForm/getSignatureAndIntroduction', 'app\api\controller\v1\RegistrationForm@getSignatureAndIntroduction', 'GET');
        Route::rule('registrationForm/submit', 'app\api\controller\v1\RegistrationForm@submit', 'POST');
        Route::rule('registrationForm/getRegistrationData', 'app\api\controller\v1\RegistrationForm@getRegistrationData', 'GET');

        // 安全承诺书相关路由
        Route::rule('agreement/getAgreement', 'app\api\controller\v1\Agreement@getAgreement', 'GET');
        Route::rule('agreement/getAgreementList', 'app\api\controller\v1\Agreement@getAgreementList', 'GET');

        // 积分系统相关路由

        // 小程序推广码生成接口
        Route::rule('getPromotionCode', 'app\api\controller\MiniProgram@getPromotionCode', 'GET|POST');
        Route::rule('userPoints/getPointsSummary', 'app\api\controller\v1\UserPoints@getPointsSummary', 'GET');
        //测试微信支付配置
        Route::rule('testWechatRefund', 'app\api\controller\v1\TestWechatRefund@index', 'GET');
        //测试微信支付签名
        Route::rule('testWechatSign', 'app\api\controller\v1\TestWechatSign@index', 'GET');
        //测试微信支付证书
        Route::rule('testWechatCert', 'app\api\controller\v1\TestWechatCert@index', 'GET');
        //测试微信支付证书简化版
        Route::rule('testWechatCertSimple', 'app\api\controller\v1\TestWechatCertSimple@index', 'GET');
        //测试退款查询完整流程
        Route::rule('testRefundQuery', 'app\api\controller\v1\TestRefundQuery@index', 'GET');
        //测试退款申请完整流程
        Route::rule('testRefundRequest', 'app\api\controller\v1\TestRefundRequest@index', 'GET');
        //测试真实订单退款
        Route::rule('testRealRefund', 'app\api\controller\v1\TestRealRefund@index', 'GET');

        // 测试配置路由
        Route::rule('testConfig', 'app\api\controller\v1\TestConfig@index', 'GET');
        Route::rule('userPoints/getPointsList', 'app\api\controller\v1\UserPoints@getPointsList', 'GET');
        Route::rule('userPoints/addPoints', 'app\api\controller\v1\UserPoints@addPoints', 'POST');
        Route::rule('userPoints/dailyQuestionReward', 'app\api\controller\v1\UserPoints@dailyQuestionReward', 'POST');
        Route::rule('userPoints/checkTodayStatus', 'app\api\controller\v1\UserPoints@checkTodayStatus', 'GET');
        Route::rule('userPoints/getSourceList', 'app\api\controller\v1\UserPoints@getSourceList', 'GET');

        // 每日答题相关路由（新增提交答案功能）
        Route::rule('dailyQuestion/submitAnswer', 'app\api\controller\v1\DailyQuestion@submitAnswer', 'POST');
        Route::rule('dailyQuestion/checkTodayStatus', 'app\api\controller\v1\DailyQuestion@checkTodayStatus', 'GET');

        // 幸运分相关路由
        Route::rule('luckyPoints/claim', 'app\api\controller\v1\LuckyPoints@claim', 'POST');
        Route::rule('luckyPoints/checkTodayStatus', 'app\api\controller\v1\LuckyPoints@checkTodayStatus', 'GET');

        // 社区信息管理
        Route::rule('communityinfo', 'app\admin\controller\communityinfo\Communityinfo@index', 'GET');
        Route::rule('communityinfo/index', 'app\admin\controller\communityinfo\Communityinfo@index', 'GET');
        Route::rule('communityinfo/add', 'app\admin\controller\communityinfo\Communityinfo@add', 'GET|POST');
        Route::rule('communityinfo/edit/:ids', 'app\admin\controller\communityinfo\Communityinfo@edit', 'GET|POST');
        Route::rule('communityinfo/del/:ids', 'app\admin\controller\communityinfo\Communityinfo@del', 'POST');
        Route::rule('communityinfo/get_teaching_points', 'app\admin\controller\communityinfo\Communityinfo@getTeachingPoints', 'GET');
        Route::rule('communityinfo/get_admin_users', 'app\admin\controller\communityinfo\Communityinfo@getAdminUsers', 'GET');

        // 文章管理API
        Route::rule('article/article/index', 'app\api\controller\v1\Article@index', 'GET');

        // 文件上传API
        Route::rule('upload/file', 'app\api\controller\v1\Upload@upload', 'POST');
        Route::rule('upload/image', 'app\api\controller\v1\Upload@uploadImage', 'POST');

        Route::rule('ProjectCourse/stats', 'app\api\controller\v1\ProjectCourse@stats', 'GET');
        Route::rule('ProjectCourse/schoolOptions', 'app\api\controller\v1\ProjectCourse@schoolOptions', 'GET');
        Route::rule('ProjectCourse/projectOptions', 'app\api\controller\v1\ProjectCourse@projectOptions', 'GET');
        Route::rule('ProjectCourse/completionStatus', 'app\api\controller\v1\ProjectCourse@completionStatus', 'GET');
        Route::rule('ProjectCourse/stats', 'app\api\controller\v1\ProjectCourse@stats', 'GET');
        Route::rule('ProjectCourse/schoolOptions', 'app\api\controller\v1\ProjectCourse@schoolOptions', 'GET');
        Route::rule('ProjectCourse/projectOptions', 'app\api\controller\v1\ProjectCourse@projectOptions', 'GET');
        Route::rule('ProjectCourse/pointDetail', 'app\api\controller\v1\ProjectCourse@pointDetail', 'GET');
        Route::rule('ProjectCourse/correspondenceList', 'app\api\controller\v1\ProjectCourse@correspondenceList', 'GET');

        Route::rule('statistics/schoolStats', 'app\api\controller\v1\Statistics@schoolStats', 'GET');
        Route::rule('statistics/classNamesBySchool','app\api\controller\v1\Statistics@classNamesBySchool','GET');
        Route::rule('statistics/classStats', 'app\api\controller\v1\Statistics@classStats', 'GET');
        Route::rule('statistics/classDetail', 'app\api\controller\v1\Statistics@classDetail', 'GET');
        Route::rule('teach/offline', 'app\api\controller\v1\TeachOffline@index', 'GET');
        Route::rule('teach/online', 'app\api\controller\v1\TeachOnline@index', 'GET');
        Route::rule('course/calendar', 'app\api\controller\v1\CourseManage@calendar', 'GET');
        Route::rule('course/query', 'app\api\controller\v1\CourseManage@query', 'GET');
        Route::rule('course/detail', 'app\api\controller\v1\CourseManage@detail', 'GET');
        Route::rule('attendance/query', 'app\api\controller\v1\Attendance@query', 'GET');
        Route::rule('Pictures/todaystatus', 'app\api\controller\v1\Pictures@todaystatus', 'GET|POST');

    });
});


Route::group('MiniProgram', function () {
    Route::get('getPromotionCode', 'app\api\controller\MiniProgram@getPromotionCode');
});

return [
    //别名配置,别名只能是映射到控制器且访问时必须加上请求的方法
    '__alias__' => [],
    //变量规则
    '__pattern__' => [],
    //        域名绑定到模块
    //        '__domain__'  => [
    //            'admin' => 'admin',
    //            'api'   => 'api',
    //        ],

];
